import request from '@/utils/request'
// 配置卡头分页
export function getPage(data) {
    return request({
        url: '/Machine_clevice/machine_clevice_page',
        method: 'post',
        data: data
    })
}
// 配置卡头列表
export function getList(data, page) {
    return request({
        url: '/Machine_clevice/machine_clevice_list/' + (page ? page : 1),
        method: 'post',
        data: data
    })
}
// 套餐列表
export function get_package(data, page) {
    return request({
        url: '/Operations_sweep_package/sweep_package_list',
        method: 'post',
        data: data
    })
}
//套餐保存
export function scanSave(data, page) {
    return request({
        url: '/Machine_clevice/config_clevice_sweep',
        method: 'post',
        data: data
    })
}

// 卡头移除关联
export function del(data) {
    return request({
        url: '/Machine_clevice/move_machine_clevice',
        method: 'post',
        data: data
    })
}
// 卡头信息的删除
export function delClevice(data) {
    return request({
        url: '/Machine_clevice/delete_machine_clevice',
        method: 'post',
        data: data
    })
}
// 卡头搜索
export function getClevice(data) {
    return request({
        url: '/Machine_clevice/machine_clevice_list/-1',
        method: 'post',
        data: data
    })
}
// 保存
export function saveClevice(data, url) {
    return request({
        url: url,
        method: 'post',
        data: data
    })
}
// 批量保存卡头
export function batch_create_clevice(data) {
    return request({
        url: '/Machine/batch_create_clevice',
        method: 'post',
        data: data
    })
}